package com.youlu.campus.entity.commission;

import com.youlu.campus.base.base.EntityBase;
import lombok.Data;
import org.springframework.data.mongodb.core.index.Indexed;
import org.springframework.data.mongodb.core.mapping.Document;

/**
 * @author : [dengbo]
 * @className : DistributorAccount
 * @description : [分销账户]
 * @createTime : [2023/2/3 14:52]
 */
@Data
@Document(collection = "distributor_account")
public class DistributorAccount extends EntityBase {
    /**
     * 账户id
     */
    @Indexed(unique = true)
    private String accountId;
    /**
     * unionid
     */
    private String unionId;
    /**
     * 总累计结算金额 单位分
     */
    private Long totalSettlementMoney;
    /**
     * 总累计订单金额 单位分
     */
    private Long totalOrderMoney;
    /**
     * 账户余额 单位分
     */
    private Long accountBalance;
    /**
     * 支付宝账号
     */
    private String alipayAccount;
}
